package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);
    public Page<Permission> findPage(String queryString);
    public  void  add(Permission permission);
    public  Permission  findById(Integer id);
    public  void  edit(Permission permission);
    public  void delete(Integer id);
    public   Long   findRoleAndPermissionById(Integer id);

    List<Permission> findByRoleId2(int id);
}
